package com.mright.step01.annotation;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author zhaochuanzhen
 * @since 2022/2/10 11:41 下午
 */
public class AnnotationConsumer {

    public static void main(String[] args) {
        final AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(ConsumerConfiguration.class);
        final EchoConsumer echoConsumer = context.getBean(EchoConsumer.class);
        echoConsumer.echo("hello world! 你好，世界！");
    }
}
